package 结构器模式.适配器模式.objectadapter;



/**
 * @Description 适配器类
 * @Author shallow
 * @Date 2023/3/4 14:47
 */

public class SDAdapterTF  implements SDCard {

    //声明适配者类
    private TFCard tfCard;

    public SDAdapterTF(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    @Override
    public String readSD() {
        return tfCard.readTF();
    }

    @Override
    public void writeSD(String content) {
        tfCard.writeTF(content);
    }
}
